<script>
function show_date_time () {
  window.setTimeout(function () {
    show_date_time();
  }, 1000);
  var BirthDay = new Date("11/1/2018 13:30:00");
  var today = new Date();
  var timeold = (today.getTime() - BirthDay.getTime());
  var msPerDay = 24 * 60 * 60 * 1000;
  var e_daysold = timeold / msPerDay;
  var daysold = Math.floor(e_daysold);
  var e_hrsold = (e_daysold - daysold) * 24;
  var hrsold = Math.floor(e_hrsold);
  var e_minsold = (e_hrsold - hrsold) * 60;
  var minsold = Math.floor((e_hrsold - hrsold) * 60);
  var seconds = Math.floor((e_minsold - minsold) * 60);
  $('#since').html(daysold + "天" + hrsold + "小时" + minsold + "分" + seconds + "秒");
}
show_date_time();
</script>

{% if site.copyright %}
{% assign current = site.time | date: '%Y' %}
{% assign since = site.since | downcase %}

<div class="powered-by">
  {{ __.footer.powered | replace: '%s', '<a class="theme-link" href="https://jekyllrb.com">Jekyll</a>') }}
</div>

<div class="theme-info">
  {{ __.footer.theme }} -
  <a class="theme-link" href="https://github.com/simpleyyt/jekyll-theme-next">
    NexT.{{ site.scheme }}
  </a>
</div>

<div class="copyright" >
  &copy; {% if site.since and since != current %} {{ since }} - {% endif %}
  <span itemprop="copyrightYear">{{ current }}</span>
  <span class="with-love">
    <i id="animate" class="fa fa-{{ site.authoricon }}"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">{{ site.author }}</span> -
  已稳定运行<span id="since"></span>
</div>

{% endif %}
